import { lazy } from 'react'
const System = lazy(() => import('../../views/Index/System'))
const Vip = lazy(() => import('../../views/Index/Vip'))

// kxd 路由引入
let UserRegulate = lazy(() => import('../../views/Index/System/UserRegulate/UserRegulate'))
let RoleManagement = lazy(() => import('../../views/Index/System/RoleManagement/RoleManagement'))
let StoreManagement = lazy(() => import('../../views/Index/System/StoreManagement/StoreManagement'))
let TenantManagement = lazy(() => import('../../views/Index/Vip/TenantManagement/TenantManagement'))

let routes = [
    {
        path: '/index/system',
        element: <System />,
        children: [
            {
                path: "/index/system/UserRegulate",
                element: <UserRegulate />
            },
            {
                path: "/index/system/RoleManagement",
                element: <RoleManagement />
            },
            {
                path: "/index/system/StoreManagement",
                element: <StoreManagement />
            },
        ]
    },
    {
        path: '/index/vip',
        element: <Vip />,
        children: [
            {
                path: "/index/vip/TenantManagement",
                element: <TenantManagement />
            }
        ]
    },
]

export default routes